<template>
	<view :style="viewColor">
		<skeleton :show="showSkeleton" :isNodes="isNodes" ref="skeleton" loading="chiaroscuro" selector="skeleton"
			bgcolor="#FFF"></skeleton>
		<view class="new-users skeleton" :style="{visibility: showSkeleton ? 'hidden' : 'visible'}">
			<view class="head">
				<view class="user-card">
					<view class="bg"></view>
					<view class="user-info">
						<image class="avatar skeleton-radius"
							:src="userInfo.avatar ? userInfo.avatar : '/static/images/f.png'" mode="aspectFill" @click="goEdit"></image>
						<view class="info">
							<view class="name" v-if="!userInfo.uid" @click="openAuto">
								请点击授权
							</view>
							<view class="name" v-if="userInfo.uid">
								{{userInfo.nickname}}
								<image v-if="member_status" class="level_icon" :src="userInfo.member_icon" alt="">
									<view class="vip" v-if="userInfo.vip">
										<image :src="userInfo.vip_icon" alt="">
											<view style="margin-left: 10rpx;" class="vip-txt">{{userInfo.vip_name}}
											</view>
									</view>
							</view>
							<view class="num" v-if="userInfo.phone" @click="goEdit()">
								<view class="num-txt">ID：{{userInfo.uid}}</view>
								<!-- <view class="icon">
									<image src="/static/images/edit.png" mode=""></image>
								</view> -->
							</view>
							<view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">绑定手机号</view>
						</view>
					</view>
					<!-- <view class="num-wrapper skeleton-rect">
						<view class="num-item" @click="goMenuPage('/pages/users/user_goods_collection/index')">
							<text class="num">{{userInfo.total_collect_product || 0}}</text>
							<view class="txt">我的收藏</view>
						</view>
						<view v-if="hide_mer_status == 0" class="num-item"
							@click="goMenuPage('/pages/users/user_store_attention/index')">
							<text class="num">{{userInfo.total_collect_store || 0}}</text>
							<view class="txt">关注店铺</view>
						</view>
						<view class="num-item" @click="goMenuPage('/pages/users/browsingHistory/index')">
							<text class="num">{{userInfo.total_visit_product || 0}}</text>
							<view class="txt">浏览记录</view>
						</view>
						<view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
							<text class="num">{{userInfo.total_coupon || 0}}</text>
							<view class="txt">优惠券</view>
						</view>
					</view> -->
					<view class="right-btn">
						<view class="iconfont icon-shezhi" v-if="isLogin" @click.stop="goSetting()"></view>
						<!-- <view class="btn" @click="authTo('/pages/chat/customer_list/index?type=0')" hover-class="none">
							<view class="iconfont icon-xiaoxi"></view>
							<text class="iconnum" v-if="userInfo.total_unread">{{userInfo.total_unread}}</text>
						</view> -->
					</view>
				</view>
			</view>
			<view class="wrapper">
				
				<!-- 问诊 -->
				<view v-if="is_show == 1" class="menus-list-item" @click="docAsk">
					<view class="item-text">
						<view class="title">
							<view class="t-box">
								<text class="ask">问诊</text>管理
								<text class="asknum" v-if="total_inquiry_unread>0">{{total_inquiry_unread}}</text>
							</view>
						</view>
						<view class="info">进入医院医生端管理问诊内容</view>
					</view>
					<view class="item-img">
						<image :src="doctorImg.ask" mode="aspectFit"></image>
					</view>
				</view>
				<!-- 预约 -->
				<view v-if="is_show == 1" class="menus-list-item" @click="docReg">
					<view class="item-text">
						<view class="title">
							<text class="reg">预约</text>管理
						</view>
						<view class="info">进入医院医生端管理预约内容</view>
					</view>
					<view class="item-img">
						<image :src="doctorImg.reg" mode="aspectFit"></image>
					</view>
				</view>
				
				<!-- 收藏、关注 -->
				<view class="col-fol-box skeleton-rect">
					<view class="cf-item" v-for="(item,index) in colFols" @click="clickColFol(item)">
						<view class="num">{{item.num}}</view>
						<view class="title">{{item.title}}</view>
					</view>
				</view>
				<!-- 功能菜单区【挂号、咨询、问诊、档案】 -->
				<view class="fun-menus-box skeleton-rect">
					<view class="m-item" v-for="(item,index) in menus" @click="clickMenus(item)">
						<view class="icon">
							<image :src="item.img" mode="aspectFit"></image>
							<text class="user-asknum" v-if="item.num>0">{{item.num}}</text>
						</view>
						<view class="title">{{item.title}}</view>
					</view>
				</view>
				
				<!-- 轮播 -->
				<view class="slider-wrapper skeleton-rect" v-if="imgUrls.length>0">
					<swiper indicator-dots="true" :autoplay="autoplay" :circular="circular" :interval="interval"
						:duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
						<block v-for="(item,index) in imgUrls" :key="index">
							<swiper-item>
								<view @click="goUrl(item.url)" class='slide-navigator acea-row row-between-wrapper'>
									<image :src="item.pic" class="slide-image"></image>
								</view>
							</swiper-item>
						</block>
					</swiper>
				</view>
				
				<view class="order-wrapper">
					<view class="order-hd flex skeleton-rect">
						<view class="left">我的订单</view>
						<view class="right flex" @click="authTo('/pages/users/order_list/index')" hover-class="none"
							open-type="navigate">
							全部订单
							<text class="iconfont icon-xiangyou"></text>
						</view>
					</view>
					<view class="order-bd">
						<block v-for="(item,index) in orderMenu" :key="index">
							<view class="order-item" @click="authTo(item.url)" hover-class="none">
								<view class="pic">
									<image :src="domain+item.img+keyColor+'.png'" mode="" class="skeleton-radius">
									</image>
									<text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
								</view>
								<view class="txt skeleton-rect">{{item.title}}</view>
							</view>
						</block>
					</view>
				</view>

				<!-- 会员菜单 -->
				<view class="user-menus" style="margin-top: 20rpx;">
					<view class="title skeleton-rect">我的服务</view>
					<view class="menu-box">
						<block v-for="(item,index) in personalMenu" :key="index">
							<view v-if="item.isShow" class="item">
								<view @click="authTo(item.url)" class="item-count">
									<image v-if="showSkeleton" class="skeleton_image skeleton-radius"></image>
									<image v-else :src="item.pic"></image>
									<text>{{item.name}}</text>
								</view>
							</view>
						</block>
					</view>
				</view>
				<view class="menus-list-item" v-if="!userInfo.topService && userInfo.service && is_show != 1" @click="toService(1)">
					<view class="item-text">
						<view class="title">
							<text class="merchant">商家</text>管理
						</view>
						<view class="info">进入商户中心管理店铺</view>
					</view>
					<view class="image merchant-image"></view>
				</view>
				<view class="menus-list-item" v-if="!userInfo.service && userInfo.topService && is_show != 1" @click="toService(0)">
					<view class="item-text">
						<view class="title">
							<text class="plantform">平台</text>管理
						</view>
						<view class="info">进入平台客服中心</view>
					</view>
					<view class="image plantform-image"></view>
				</view>
				<view class="menu-list-count" v-if="userInfo.topService && userInfo.service && is_show != 1">
					<view class="menu-item" @click="toService(1)">
						<view class="image merchant-image"></view>
						<view class="menu-text">
							<view class="title">
								<text class="merchant">商家</text>管理
							</view>
							<view class="info">进入商家管理中心</view>
						</view>
					</view>
					<view class="menu-item" @click="toService(0)">
						<view class="menu-text">
							<view class="title">
								<text class="plantform">平台</text>管理
							</view>
							<view class="info">进入平台客服中心</view>
						</view>
						<view class="image plantform-image"></view>
					</view>
				</view>
			</view>
	<!-- 		<view class="copy-right">

				<view class="text">山东万岳信息科技有限公司提供技术支持</view>
			</view> -->
			<view style="height: 50rpx;"></view>

			<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"
				:isGoIndex="false"></authorize>
			<!-- #ifndef H5 -->
			<passwordPopup></passwordPopup>
			<!-- #endif -->
		</view>
	</view>

</template>
<script>
	
	import {
		getMenuList,
		getUserInfo,
		setVisit
	} from '@/api/user.js';
	import {
		orderData
	} from '@/api/order.js'
	import {
		mapGetters
	} from "vuex";
	import authorize from '@/components/Authorize';
	// #ifndef H5
	import passwordPopup from '@/components/passwordPopup';
	// #endif
	import {
		configMap
	} from '@/utils';
	import Auth from '@/libs/wechat';
	import {
		HTTP_REQUEST_URL
	} from '@/config/app';
	const app = getApp();
	import {
		getCollectNums
	} from '@/api/inquiry.js'
	export default {
		components: {
			// #ifndef H5
			passwordPopup,
			// #endif
			authorize
		},
		computed: configMap({
			mer_intention_open: 0,
			hide_mer_status: 1,
			recharge_switch: 0,
			integral_status: 0,
			member_status: 0,
			balance_func_status: 0,
		}, mapGetters(['isLogin', 'viewColor', 'keyColor','uid','routeError'])),
		data() {
			return {
				domain: HTTP_REQUEST_URL,
				showSkeleton: true, //骨架屏显示隐藏
				isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
				doctorImg:{
					ask: HTTP_REQUEST_URL + '/uni_static/u/udoc_ask.png',
					reg: HTTP_REQUEST_URL + '/uni_static/u/udoc_reg.png',
				},
				colFols: [{
					'id': 0,
					'title': '收藏的内容',
					'num': '0',
					'url': '/pages/shops/subs_user/collection/index'
				}, {
					'id': 1,
					'title': '关注的医生',
					'num': '0',
					'url': '/pages/shops/subs_user/follow/index'
				}],
				menus: [{
						'id': 0,
						'title': '我的挂号',
						'num':0,
						'img': HTTP_REQUEST_URL + '/uni_static/u/um_register.png',
						'url': '/pages/shops/subs_appointment/record/index'
					},
					{
						'id': 1,
						'title': '我的咨询',
						'num':0,
						'img': HTTP_REQUEST_URL + '/uni_static/u/um_ask.png',
						'url': '/pages/shops/subs_inquiry/record/onlineList'
					},
					{
						'id': 2,
						'title': '我的问诊',
						'num':0,
						'img': HTTP_REQUEST_URL + '/uni_static/u/um_inquiry.png',
						'url': '/pages/shops/subs_inquiry/record/picTextList'
					},
					{
						'id': 3,
						'title': '我的检测',
						'num':0,
						'img': HTTP_REQUEST_URL + '/uni_static/u/um_detection.png',
						'url': '/pages/shops/detection/order_list/order_list'
					},
					{
						'id': 4,
						'title': '健康档案',
						'num':0,
						'img': HTTP_REQUEST_URL + '/uni_static/u/um_healthy.png',
						'url': '/pages/shops/subs_inquiry/patients/list'
					}
				],
				orderMenu: [{
						img: '/static/diy/order1',
						title: '待付款',
						url: '/pages/users/order_list/index?status=0',
						num: 0
					},
					{
						img: '/static/diy/order2',
						title: '待发货',
						url: '/pages/users/order_list/index?status=1',
						num: 0
					},
					{
						img: '/static/diy/order3',
						title: '待收货',
						url: '/pages/users/order_list/index?status=2',
						num: 0
					},
					{
						img: '/static/diy/order4',
						title: '待评价',
						url: '/pages/users/order_list/index?status=3',
						num: 0
					},
					{
						img: '/static/diy/order5',
						title: '售后/退款',
						url: '/pages/users/refund/list',
						num: 0
					},
				],
				imgUrls: [{
					url: '',
					pic: ''
				}],
				userMenu: [],
				skeletonMenu: [],
				personalMenu: [{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					},
					{
						pic: '',
						name: '',
						isShow: true
					}

				],
				autoplay: true,
				circular: true,
				interval: 3000,
				duration: 500,
				isAuto: false, //没有授权的不会自动授权
				isShowAuth: false, //是否隐藏授权
				orderStatusNum: {},
				userInfo: {
					aratar: '/static/f.png'
				},
				MyMenus: [],
				is_promoter: 0, //推广人开关  1开
				extension_status: 0,
				is_show:0,
				total_inquiry_unread:0,
			}
		},
		onLoad() {	
			if(this.routeError) {
				this.$store.commit('GO_ERROR');
				return
			}
			setTimeout(() => {
				this.showSkeleton = false

				// console.log('rk===>[xx]' + JSON.stringify(this.viewColor));		
			}, 500)


		},
		onReady() {
			this.isNodes++;
		},
		mounted: function() {},
		onShow: function() {	
			let that = this;
			if (that.isLogin) {
				this.getUserInfo();
				this.orderNum();
				// this.setVisit();
				this.getCollectNums();
			} else {
				this.userInfo = {}
				this.orderMenu.forEach(v => {
					v.num = 0
				})
				this.getMyMenus();
			}
		},
		methods: {
			authTo(url) {
				console.log(url)
				if (this.isLogin) {
					if(url.indexOf("https") == -1){
						uni.navigateTo({
							url
						})
					}else{
						// #ifdef H5
						location.href = url
						// #endif
						// #ifdef MP || APP-PLUS
						uni.navigateTo({
							url: `/pages/webview/webview?url=${url}`
						});
						// #endif
					}
				} else {
					this.openAuto()
				}
			},
			toService(mer) {
				uni.navigateTo({
					url: '/pages/admin/business/index?is_sys=' + (mer ? '0' : '1')
				})
			},
			// 菜单显示
			filterMenus: function(item) {
				let that = this;
				if (item.url == '/pages/users/user_money/index') item.isShow = that.balance_func_status == 1
				else if (item.url == '/pages/users/user_spread_user/index') {
					if (that.extension_status == 0) {
						item.isShow = false
					} else if (that.extension_status == 1) {
						if (that.is_promoter == 1) {
							item.isShow = that.is_promoter == 1 && that.extension_status == 1
						} else if (that.is_promoter == 0) {
							item.isShow = that.is_promoter == 0 && that.extension_status == 1
							item.url = "/pages/users/distributor/index"
						}
					}
				} else if (item.key == '/pages/store/settled/index') item.isShow = that.mer_intention_open == 1 && that
					.hide_mer_status != 1
				else if (item.url == '/pages/users/user_grade/index') item.isShow = that.member_status == 1
				else if (item.url == '/pages/users/user_integral/index') item.isShow = that.integral_status == 1
				else item.isShow = true
			},
			showMenu(menu) {
				return !menu || ['integral', 'service', 'admin_order', 'verify_order', 'intention', 'promoter', 'balance']
					.indexOf(menu) === -1;
			},
			goUrl(url) {
				if (url.indexOf("http") != -1) {
					// #ifdef H5
					location.href = url
					// #endif
				} else {
					if (['/pages/shops/index/index', '/pages/shops/forlist/index', '/pages/shops/chat/index',
							'/pages/shops/user/index'
						].indexOf(url) == -1) {
						uni.navigateTo({
							url: url
						})
					} else {
						uni.switchTab({
							url:url
						})
					}
				}
			},
			// 去聊天列表
			goChat() {
				let type = this.userInfo.service ? 1 : 0
				uni.navigateTo({
					url: `/pages/chat/customer_list/index?type=${type}`
				})
			},
			// 记录会员访问
			setVisit() {
				setVisit({
					url: '/pages/user/index'
				}).then(res => {})
			},
			// 打开授权
			openAuto() {
				this.isAuto = true;
				this.isShowAuth = true
			},
			// 授权回调
			onLoadFun() {
				this.getUserInfo();
				this.getMyMenus();
				this.orderNum();
				this.isShowAuth = false
			},
			Setting: function() {
				uni.openSetting({
					success: function(res) {
						console.log(res.authSetting)
					}
				});
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e
			},
			// 绑定手机
			bindPhone() {
				uni.navigateTo({
					url: '/pages/users/user_phone/index'
				})
			},
			/**
			 * 获取个人用户信息
			 */
			getUserInfo: function() {
				let that = this;
				getUserInfo().then(res => {
					that.userInfo = res.data,
						that.is_promoter = res.data.is_promoter
					that.extension_status = res.data.extension_status
					that.is_show = res.data.is_show;
					// 医生问诊未读消息数
					that.total_inquiry_unread = res.data.total_inquiry_unread;
					//用户问诊未读消息数
					that.menus[1].num = res.data.total_patient_unread;
					
					that.getMyMenus();
				});
			},
			// 订单数字
			orderNum() {
				orderData().then(({
					data
				}) => {
					this.orderMenu.forEach((item, index) => {
						console.log('item')
						switch (item.title) {
							case '待付款':
								item.num = data.noPay
								break
							case '待发货':
								item.num = data.noPostage
								break
							case '待收货':
								item.num = data.noDeliver
								break
							case '待评价':
								item.num = data.noComment
								break
							case '售后/退款':
								item.num = data.refund
								break
						}
					})
				})
			},

			/**
			 *
			 * 获取个人中心图标
			 */
			getMyMenus: function() {
				let that = this;
				if (this.MyMenus.length) return;
				getMenuList().then(res => {
					that.personalMenu = []
					res.data.menu.forEach((item, index) => {
						that.filterMenus(item)
						that.personalMenu.push(item)
					})
					that.imgUrls = res.data.banner
				});
			},

			// 编辑页面
			goEdit() {
				if(this.isLogin){
					uni.navigateTo({
						url: '/pages/users/user_info/index'
					})
				}else{
					this.openAuto()
				}
			},
			goSetting() {
				if (this.isLogin) {
					uni.navigateTo({
						url: '/pages/users/user_setting/index'
					})
				} else {
					this.openAuto()
				}
			},
			// 签到
			goSignIn() {
				uni.navigateTo({
					url: '/pages/users/user_sgin/index'
				})
			},
			// goMenuPage
			goMenuPage(url) {
				if (this.isLogin) {
					uni.navigateTo({
						url
					})
				} else {
					this.openAuto()
				}
			},
			/**
			 * 关注-收藏
			 */
			clickColFol(item) {
				console.log('rk==>[col-fol]' + JSON.stringify(item.id));
				if (!item.url || item.url.length <= 0) {
					return this.$util.Tips({
						title: '链接不合法'
					});
				}
			
				if (!this.isLogin) {
					this.openAuto()
					return
				}
				uni.navigateTo({
					url: item.url
				})
			},
			/**
			 * 菜单
			 */
			clickMenus(item) {
				if (!this.isLogin) {
					this.openAuto()
					return
				}
				uni.navigateTo({
					url: item.url
				})
			},
			/**
			 * 预约管理
			 */
			docReg(){
				if (!this.isLogin) {
					this.openAuto()
					return
				}
				uni.navigateTo({
					url: '/pages/shops/subs_doc_manager/appointment/appointment'
				})
			},
			/**
			 * 问诊管理
			 */
			docAsk(){
				if (!this.isLogin) {
					this.openAuto()
					return
				}
				uni.navigateTo({
					url: '/pages/shops/subs_doc_manager/inquiry/inquiry'
				})
			},
			/**
			 * 获取关注、收藏数量
			 */
			getCollectNums() {
				let where = {
					'uid': this.uid
				}
				getCollectNums(where).then(res => {
					this.colFols[0].num = res.data.collect_count;
					this.colFols[1].num = res.data.follow_count;
				});
			},
			
		}
	}
</script>

<style lang="scss">
	.new-users {
		.head {
			background: #fff;

			.user-card {
				position: relative;
				width: 100%;
				padding: 35rpx 0 35rpx;
				// background-image: linear-gradient(90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
				background-color: #fff;
				
				.bg {
					position: absolute;
					left: 0;
					top: 0;
					width: 100%;
					height: 100%;
					// background-image: url('~@/static/images/user_bg.png');
					background-size: 100% 100%;
				}

				.user-info {
					z-index: 20;
					position: relative;
					display: flex;
					padding: 0 28rpx;

					.level_icon {
						width: 34rpx;
						height: 32rpx;
						margin: 4rpx 0 0 6rpx;
						border: none;
					}

					.avatar {
						width: 120rpx;
						height: 120rpx;
						border-radius: 50%;
					}

					.info {
						flex: 1;
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						margin-left: 20rpx;
						padding: 15rpx 0;

						.name {
							display: flex;
							align-items: center;
							color: #323232;
							font-size: 31rpx;

							.vip {
								display: flex;
								align-items: center;
								height: 36rpx;
								padding: 0 20rpx;
								background: rgba(0, 0, 0, 0.2);
								border-radius: 18px;
								font-size: 20rpx;
								margin-left: 12rpx;

								image {
									width: 27rpx;
									height: 27rpx;
								}
							}
						}

						.num {
							display: flex;
							align-items: center;
							font-size: 26rpx;
							color: #323232;

							image {
								width: 22rpx;
								height: 23rpx;
								margin-left: 20rpx;
							}
						}
					}
				}

				.num-wrapper {
					z-index: 30;
					position: relative;
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin: 30rpx 20rpx 0;
					color: #323232;

					.num-item {
						width: 25%;
						text-align: center;

						.num {
							font-size: 42rpx;
							font-weight: bold;
						}

						.txt {
							margin-top: 8rpx;
							font-size: 22rpx;
							color: rgba(255, 255, 255, 0.6);
						}
					}
				}

				.sign {
					z-index: 200;
					position: absolute;
					right: -12rpx;
					top: 80rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					width: 120rpx;
					height: 60rpx;
					background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
					border-radius: 29rpx 4rpx 4rpx 29rpx;
					color: #282828;
					font-size: 28rpx;
					font-weight: bold;
				}
			}
		}

		.wrapper {
			position: relative;
			//top: -44rpx;
			top:0rpx;
			padding: 0 20rpx;
		}

		.order-wrapper {
			margin-top: 20rpx;
			background-color: #fff;
			border-radius: 12rpx;

			.order-hd {
				height: 80rpx;
				align-items: center;
				justify-content: space-between;
				border-bottom: 1px dashed #DDDDDD;
				padding: 0 30rpx;
				font-size: 30rpx;
				color: #282828;

				.right {
					align-items: center;
					color: #666666;
					font-size: 26rpx;

					.icon-xiangyou {
						margin-left: 5rpx;
						margin-top: 6rpx;
						font-size: 26rpx;
					}
				}
			}

			.order-bd {
				display: flex;

				.order-item {
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					width: 20%;
					height: 160rpx;

					.pic {
						position: relative;
						text-align: center;

						image {
							width: 56rpx;
							height: 56rpx;
						}
					}

					.txt {
						margin-top: 8rpx;
						font-size: 26rpx;
						color: #454545;
					}
				}
			}
		}

		.slider-wrapper {
			margin: 20rpx 0;
			height: 130rpx;

			swiper,
			swiper-item {
				height: 100%;
			}

			image {
				width: 100%;
				height: 130rpx;
			}
		}

		.user-menus {
			padding-bottom: 30rpx;
			background-color: #fff;
			border-radius: 16rpx;

			.title {
				height: 80rpx;
				line-height: 80rpx;
				padding: 0 30rpx;
				border-bottom: 1px dashed #DDDDDD;
				font-weight: bold;
			}

			.item {
				position: relative;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-between;
				width: 25%;
				line-height: 28rpx;
				height: 90rpx;
				margin-top: 30rpx;
				text-align: center;

				.item-count {
					display: flex;
					flex-direction: column;
					align-items: center;
					width: 100%;
				}

				image {
					width: 52rpx;
					height: 52rpx;
				}

				.skeleton_image {
					width: 80rpx;
					height: 80rpx;
				}

				text {
					margin-top: 10rpx;
					font-size: 26rpx;
					color: #282828;
					text-overflow: ellipsis;
					overflow: hidden;
					white-space: nowrap;
					width: 78%;
				}

				&:last-child::before {
					display: none;
				}
			}

			button {
				font-size: 28rpx;
			}
		}

		.phone {
			color: #323232;
		}

		.order-status-num {
			min-width: 15px;
			height: 15px;
			text-align: center;
			background-color: #fff;
			color: var(--view-theme);
			border-radius: 15px;
			position: absolute;
			right: -14rpx;
			top: -15rpx;
			font-size: 20rpx;
			padding: 0 8rpx;
			border: 1px solid var(--view-theme);
		}
	}
	
	.col-fol-box {
		background-color: #fff;
		border-radius: 12rpx;
		padding: 30rpx 0;
		margin: 20rpx 0;
		display: flex;
		align-items: center;
		width: 100%;
	
		.cf-item {
			width: 50%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			font-size: $yy-title-font;
	
			.num {
				font-weight: bold;
				margin-bottom: 10rpx;
			}
	
		}
	}
	
	.fun-menus-box {
		background-color: #fff;
		border-radius: 12rpx;
		padding: 30rpx 0;
		margin: 20rpx 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	
		.m-item {
			width: 30%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			font-size: $yy-title-font;
		}
	
		.icon {
			width: 70rpx;
			height: 70rpx;
			margin-bottom: 20rpx;
	
			image {
				width: 100%;
				height: 100%;
			}
			position: relative;
			.user-asknum {
				min-width: 15px;
				height: 15px;
				text-align: center;
				background-color: #fff;
				color: var(--view-theme);
				border-radius: 15px;
				position: absolute;
				// right: -10rpx;
				top: -10rpx;
				font-size: 20rpx;
				padding: 0 8rpx;
				border: 1px solid var(--view-theme);
				
			}
		}
	}
	
	.menus-list-item {
		background: #fff;
		border-radius: 12rpx;
		padding: 30rpx 50rpx 30rpx 40rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 20rpx;

		.title {
			font-size: 34rpx;
			color: #282828;
			font-weight: bold;
			display: flex;
			.t-box{
				position: relative;
			}
			.asknum{
				min-width: 15px;
				height: 15px;
				text-align: center;
				background-color: #fff;
				color: var(--view-theme);
				border-radius: 15px;
				position: absolute;
				// right: -20rpx;
				top: -10rpx;
				font-size: 20rpx;
				padding: 0 8rpx;
				border: 1px solid var(--view-theme);
			}
			.ask {
				color: $yy-main-col;
			}
			
			.reg {
				color: #8595FA;
			}
			
			.merchant {
				color: #E93323;
			}

			.plantform {
				color: #FFC552;
			}
		}

		.info {
			margin-top: 15rpx;
			color: #666666;
			font-size: 22rpx;
		}
		
		.item-img {
			width: 180rpx;
			height: 108rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}
		
		.image {
			width: 180rpx;
			height: 108rpx;
			background-size: 100%;
			background-repeat: no-repeat;

			&.merchant-image {
				background-image: url('');
			}

			&.plantform-image {
				background-image: url('');
			}
		}
	}

	.copy-right {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		color: #CCCCCC;
		font-size: 22rpx;
		margin-top: 30rpx;
		.iconfont {
			font-size: 60rpx;
		}
	}

	.menu-box {
		display: flex;
		flex-wrap: wrap;
	}

	.right-btn {
		z-index: 99;
		position: absolute;
		right: 30rpx;
		top: 40rpx;
		display: flex;
		align-items: center;
		color: #323232;

		.iconfont {
			font-size: 40rpx;
			margin-left: 33rpx;
		}

		.btn {
			position: relative;
		}
		.iconnum {
			min-width: 6px;
			background-color: #fff;
			color: var(--view-theme);
			border-radius: 15rpx;
			position: absolute;
			right: -10rpx;
			top: -10rpx;
			font-size: 10px;
			padding: 0 4px;
		}
	}
	

	.menu-list-count {
		background-color: #fff;
		margin-top: 20rpx;
		border-radius: 12rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.menu-item {
			width: 50%;
			padding: 25rpx 15rpx;
			display: flex;
			align-items: center;
			position: relative;

			&:first-child {
				&::after {
					content: "";
					display: block;
					border-right: 1rpx solid #E2E2E2;
					height: 56%;
					position: absolute;
					right: 0;
				}
			}

			.image {
				width: 106rpx;
				height: 64rpx;
				background-size: 100%;
				background-repeat: no-repeat;

				&.merchant-image {
					margin-right: 15rpx;
					background-image: url('');
				}

				&.plantform-image {
					margin-left: 15rpx;
					background-image: url('');
				}
			}

			.menu-text {
				margin-left: 10rpx;

				.title {
					color: #333333;
					font-weight: bold;
					font-size: 26rpx;

					.merchant {
						color: #E93323;
					}

					.plantform {
						color: #FFC552;
					}
				}

				.info {
					color: #999999;
					font-size: 22rpx;
					margin-top: 5rpx;
				}
			}
		}
	}
</style>
